import axios from '@/libs/api.request'

// 设备新增接口
export const deviceAdd = (data) => {
  return axios.request({
    url: 'api/ac/cscforxq/EquipmentInfoService/saveEquipmentInfo',
    data: data,
    method: 'post'
  })
}
// 设备查询接口
export const devicePageList = (data) => {
  return axios.request({
    url: 'api/ac/cscforxq/EquipmentInfoService/selectEquipmentInfo',
    data: data,
    method: 'post'
  })
}
// 根据id查询设备信息
export const deviceObj = (data) => {
  return axios.request({
    url: 'api/ac/cscforxq/EquipmentInfoService/getInfo',
    data: data,
    method: 'post'
  })
}
// 设备修改接口
export const deviceUp = (data) => {
  return axios.request({
    url: 'api/ac/cscforxq/EquipmentInfoService/updateEquipment',
    data: data,
    method: 'post'
  })
}
// 设备删除接口
export const deviceDel = (data) => {
  return axios.request({
    url: 'api/ac/cscforxq/EquipmentInfoService/deleteEquipment',
    data: data,
    method: 'post'
  })
}
// 设备故障信息查询
export const problemLog = (data) => {
  return axios.request({
    url: 'api/ac/cscforxq/EquipmentInfoLogService/selectEquipmentLogInfo',
    data: data,
    method: 'post'
  })
}
// 设备故障信息新增
export const problemAdd = (data) => {
  return axios.request({
    url: 'api/ac/cscforxq/EquipmentInfoLogService/saveEquipmentLogInfo',
    data: data,
    method: 'post'
  })
}
// 网关设备新增
export const getwayAdd = (data) => {
  return axios.request({
    url: 'api/ac/cscforxq/GetwayInfoService/saveGetwayInfo',
    data: data,
    method: 'post'
  })
}
// 网关设备查询
export const getwayPageList = (data) => {
  return axios.request({
    url: 'api/ac/cscforxq/GetwayInfoService/selectGetwayInfo',
    data: data,
    method: 'post'
  })
}
// 网关设备单项查询
export const getwayObj = (data) => {
  return axios.request({
    url: 'api/ac/cscforxq/GetwayInfoService/getInfo',
    data: data,
    method: 'post'
  })
}
// 网关设备修改
export const getwayUp = (data) => {
  return axios.request({
    url: 'api/ac/cscforxq/GetwayInfoService/updateGetwayInfo',
    data: data,
    method: 'post'
  })
}
// 网关设备删除
export const getwayDel = (data) => {
  return axios.request({
    url: 'api/ac/cscforxq/GetwayInfoService/deleteGetwayInfo',
    data: data,
    method: 'post'
  })
}
// 网关设备-威胁监管
export const wxAlarm = (data) => {
  return axios.request({
    url: 'api/ac/cscforxq/GetwayInfoService/updatewxAlarm',
    data: data,
    method: 'post'
  })
}
// 网关设备-集中告警
export const jzfocus = (data) => {
  return axios.request({
    url: 'api/ac/cscforxq/GetwayInfoService/updatejzfocus',
    data: data,
    method: 'post'
  })
}